#include <stdio.h>
#include <math.h>
int main() {
	double x1, x2, f, k;
	x2 = 2;
	do {
		x1 = x2;
		f = 2 * x1 * x1 * x1 - 4 * x1 * x1 + 5 * x1 - 18;
		k = 6 * x1 * x1 - 8 * x1 + 5;
		x2 = x1 - f / k;
	} while (fabs (x1 - x2) >= 0.00001);
	printf ("The root is %f", x2);
}
